home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
8174
/
8174.xpi
/
chrome
/
antbar.jar
/
content
/
lib
/
lang.js
< prev
next >
Wrap
Text File
|
2009-12-30
|
1KB
|
58 lines
/*
* DO NOT EDIT THIS FILE !
*
* IT WAS AUTOMATICALLY COPIED FROM THE /lib/ DIRECTORY
* TO UPDATE IT YOU NEED TO BUILD THE XPI OF THE CURRENT PROJECT
*
*/
//
// lang.js
// firefox
//
// Created by Zak on 2008-07-14.
// Copyright 2008 Ant.com. All rights reserved.
//
/**
* Handle localization of JS strings
*/
var AntLang =
{
/**
* Get a pointer to the string bundle object
*/
get lang()
{
return AntLib.ob("langstr");
},
/**
* Return the string corresponding to the given symbol
* @param str The symbol string to translate
*/
getString: function (str)
{
return this.lang.getString(str);
},
/**
* Return the formated string corresponding to the given symbol
* @param fmt The format string (printf style)
*/
getFormatString: function (fmt)
{
var param = new AntArray();
if (arguments.length > 0)
{
param.fromArray(arguments);
param = param.slice(1);
}
return this.lang.getFormattedString(fmt, param);
}
}